<html>
    <head>
        <script>
            const socket = new WebSocket('ws://localhost:3000');
            socket.onopen = function() {
                console.log('Connected');
                socket.send(JSON.stringify({
                    type: 'events',
                    message: 'test',
                }));
                socket.onmessage = function(data) {
                    console.log(data);
                }
            };
        </script>
    </head>
    <body></body>
</html>